package org.example.pattern.factory.simple;

public class ClientTest {

    public static void main(String[] args) {

        FruitFactory fruitFactory = new FruitFactory();
        Fruit fruit = fruitFactory.getFruit(1);
        System.out.println("生产---》 " + fruit.getName());

        fruit = fruitFactory.getFruit(2);
        System.out.println("生产---》 " + fruit.getName());

    }

}
